﻿using SqlSugar;

namespace Koala.Pro.Core.Models;

[SugarTable("TB_FileUpload")]
public class FileUploadInfo : Entity<string>
{
    public virtual string Owner_ID { get; set; }

    public virtual string AttachmentGUID { get; set; }

    public virtual string FileName { get; set; }

    public virtual string BasePath { get; set; }

    public virtual string SavePath { get; set; }

    public virtual string Category { get; set; }

    public virtual int? FileSize { get; set; }

    public virtual string FileExtend { get; set; }

    public virtual string Editor { get; set; }

    public virtual DateTime? AddTime { get; set; }

    public virtual int? DeleteFlag { get; set; } = 0;


    [SugarColumn(IsIgnore = true)]
    public byte[] FileData { get; set; }

    [SugarColumn(IsIgnore = true)]
    public bool? IsImage { get; set; }

    public FileUploadInfo()
    {
        AddTime = DateTime.Now;
    }
}
